<?php

	/**
	 * where() method for devmod. Set where clausle for internal ussage.
	 * 
	 * @author bsuter
	 * @package devmod
	 */
	class Devmod_method_where extends Devmod_methods_abstraction {
	
		protected $overwrite_config = true;
		
		public function set_config($args)
		{
			$this->update_config('where_get', $args[0]);
			
			$key = array_search($this->config['operator'][$this->type]['param'], $this->config['list']['original']);
			
			$this->update_config('where', "{$this->config['list']['original'][$key]} = '$args[0]'");
		}
		
	}